<template>
	<view class="wrap">
		<view class="container">
			<view class="circle"></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		}
	}
</script>

<style lang="scss">
	.wrap {
		display: flex;
		align-items: center;
		justify-content: center;

		.container {
			width: 300upx;
			height: 300upx;
			border-radius: 50%;
			position: relative;
			box-sizing: border-box;
			background-image: radial-gradient(circle, #378FFA 50%, #fff);
		}

		.circle {
			position: absolute;
			left: 50%;
			top: 0;
			width: 30px;
			height: 30px;
			border-radius: 50%;
			background: #aaa;
			transform-origin: 0 150upx;
			animation: spin 3s infinite linear
		}

		@keyframes spin {
			to {
				transform: rotate(1turn);
			}
		}
	}
</style>
